package com.edu.commons;

/**
 * @ProjectName: myApp
 * @Titile: ServiceException
 * @Author: Administrator
 * @Description: TODO
 */

import lombok.Data;
import lombok.Getter;

/**
 * @Description: 统一的业务异常类
 */
public class ServiceException extends RuntimeException{
    //异常码
    @Getter //提高外部访问的getter访问器，外部就可以访问了
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode,String message ) {
        super(message);
        this.serviceCode = serviceCode;
    }
}
